<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/jsp/commons/taglibs.jsp"%>
<!DOCTYPE html >
<html>
<head>
</head>
<body>

	<table width="100%" border="0" cellspacing="0" cellpadding="0"
		class="tab">
		<tr>
			<th>序号</th>
			<th>下单日期</th>
			<th>主题内容</th>
			<th>下单部门</th>
			<th>下单人</th>
			<th>指定完成日期</th>
			<th>接受部门</th>
			<th>接单人</th>
			<th>进展情况</th>
			<th>完成结果</th>
			<th>操作</th>
		</tr>
		<c:if test="${empty resultDto.result  }">
		<tr>
			<td colspan="11">没有记录</td>
		</tr>
		</c:if>
		
		<c:forEach items="${resultDto.result}" var="result" varStatus="sn">
			<tr>
				<td>${sn.index+1 }</td>
				<td><fmt:formatDate value="${result.createDate}"
						pattern="yyyy年MM月dd日" /></td>
				<td title="${result.content}">${result.content}</td>
				<td title="${result.departName}">${result.departName}</td>
				<td title="${result.createPeopleName}">${result.createPeopleName}</td>
				<td title="${result.finishDate}"><fmt:formatDate
						value="${result.finishDate}" pattern="yyyy年MM月dd日" /></td>
				<td title="${result.receiveDepartName}">${result.receiveDepartName}</td>
				<td title="${result.receivePeopleName}">${result.receivePeopleName}</td>
				<td title="${result.progress}">${result.progress}</td>
				<td > 
				<c:choose>
				<c:when test="${result.result eq '0' }">进行中</c:when>
				<c:when test="${result.result eq '1' }">已处理</c:when>
				</c:choose>
				</td>
				<td title="">
				<c:choose>
					<c:when test="${actionType eq '6'}">
					<a href="#" onclick="processNotice('${result.noticeId}')">处理 </a> &nbsp;&nbsp;
					</c:when>
					<c:otherwise>
					<a href="${ctx }/notice/noticeAction!updateInit.action?notice.noticeId=${result.noticeId}">编辑 </a> &nbsp;&nbsp;
					<a href="#">删除 </a> &nbsp;&nbsp;
					</c:otherwise>
				</c:choose> 
				</td>
			</tr>
		</c:forEach>
	</table>
	<s:if test="resultDto.result!=null && resultDto.result.size()>0">
	<!--分页 begin-->
	<div class="pageleft">共有${resultDto.pagination.total}条数据，当前第${resultDto.pagination.index+1}页</div>
	<%-- 	<div class="pageleft">
		共有${resultDto.pagination.total }条数据，当前第<span id="pageCodeId"></span>页
	</div> --%>
		<c:choose>
			<c:when test="${actionType eq '6'}">
				<div class="pagenum">
					<a href="#" id="topPage"
						onclick="queryPageByCon('${ctx}/notice/noticeAction!toCenterList.action',0,'noticeResult');">首页</a>
					<span id="Paginationa"></span> <a href="#" id="endPage"
						onclick="queryPageByCon('${ctx}/notice/noticeAction!toCenterList.action','${totalPage-1 }','noticeResult');">尾页</a>
				</div>
			</c:when>
			<c:otherwise>
				<div class="pagenum">
					<a href="#" id="topPage"
						onclick="queryPage('${ctx}/notice/noticeAction!listInit.action',0);">首页</a>
					<span id="Paginationa"></span> <a href="#" id="endPage"
						onclick="queryPage('${ctx}/notice/noticeAction!listInit.action','${totalPage-1 }');">尾页</a>
				</div>
			</c:otherwise>
		</c:choose>

		<input type="hidden" id="totalRow"
			value="${resultDto.pagination.total }" />
		<input type="hidden" id="totalPage" value="${totalPage }" />
		<div class="clear"></div>
	</s:if>
</body>
</html>
